
package org.study.mybatisplus.dynamic.boot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.study.mybatisplus.dynamic.boot.model.IotAlarmLog;
import org.study.mybatisplus.dynamic.boot.vo.AlarmLogStatisticalVO;

import java.util.List;

/**
 * 告警日志
 *
 * @author doveylovey
 * @version v1.0.0
 * @email 1135782208@qq.com
 * @date 2024年10月08日
 */
@Mapper
public interface IotAlarmLogMapper extends BaseMapper<IotAlarmLog> {
    List<AlarmLogStatisticalVO> alarmLogStatistics4Project(@Param("projectId") Long projectId);

    List<AlarmLogStatisticalVO> alarmLogStatistics4PowerStation(@Param("projectId") Long projectId,
                                                                @Param("powerStationId") Long powerStationId);

    List<AlarmLogStatisticalVO> alarmLogStatistics4Device(@Param("projectId") Long projectId,
                                                          @Param("powerStationId") Long powerStationId,
                                                          @Param("deviceId") Long deviceId);
}
